package com.whx.managea.service.impl;

import com.whx.managea.dao.ClazzDAO;
import com.whx.managea.entity.Clazz;
import com.whx.managea.service.CLazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClazzServiceImpl implements CLazzService {

    @Autowired
    private ClazzDAO clazzDAO;

    @Override
    public List<Clazz> findAll() {
        return clazzDAO.findAll();
    }

    @Override
    public void save(Clazz clazz) {
        clazzDAO.save(clazz);
    }
}
